package org.pcorp.battlespace.modele.type;

public class TypeVaissStructFrappeur extends TypeVaissStruct {

	public TypeVaissStructFrappeur(double coefInt, double coefPas) {
		super(coefInt, coefPas);
	}
	
		@Override
		public long getIntegriteMin(long masse) {
			return Math.round(masse/22000);
		}
		
		@Override
		public long getBlindageMax(double masse) {
			return Math.round(masse);
		}
		
		@Override
		public double getCoefBlindage(double masse) {
		if (masse<15000)
			return 1.6;
		if (masse<150000)
			return 0.8;
		if (masse<250000)
			return 0.6;
		return 0.4;
		}
		
		@Override
		public long getSabordMax(double masse) {
			if (masse<500)
				return 4;
			if (masse<10000)
				return 6;
			if (masse<20000)
				return 12;
			
			return Math.round(masse/1500);
		}
}
